/**
 * Created by guiyongdong on 2017/6/20.
 */

import React from 'react';

import App from '../App';
import Home from './home/Home';
import Server from './server/Server';
import Example from './example/Example';
import About from './about/About';
import {HashRouter} from 'react-router-dom';
import {Route}  from 'react-router';
import ExampleDetail from './example/ExampleDetail';

const Router = (
    <HashRouter>
        <App>
            <Route exact path="/" component={Home} />
            <Route exact path="/server" component={Server} />
            <Route exact path="/example" component={Example} />
            <Route exact path="/about" component={About} />
            <Route exact path="/detail/*" component={ExampleDetail} />
        </App>
    </HashRouter>
);

export default Router;